package com.lili.userservice.controller;

import com.lili.utilscommon.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;


@Api(value = "用户管理")
@RestController
@RequestMapping("/userservice/tb-user")
@CrossOrigin
public class LoginController {

    @ApiOperation(value = "用户登录")
    @PostMapping("/login")
    public Result login(){
        return Result.ok().data("token","123123");
    }
    @ApiOperation(value = "登录之后查询用户信息")
    @GetMapping("/info")
    public Result info(){
        return Result.ok().data("name","LiLi").data("avatar","https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2667813928,3471145146&fm=15&gp=0.jpg");
    }


}
